const gulp = require('gulp')
const uglify = require('gulp-uglify')
const rename = require('gulp-rename')

gulp.task('default', () => {
  gulp.src('scr/f')
    .pipe(uglify())
    .pipe(rename((path) => {
      path.extname = '.min.js'
    }))
    .pipe(gulp.dest('dest/js'))
})
